package com.example.demo.test;

import cn.hutool.core.date.StopWatch;
import cn.hutool.core.thread.ThreadUtil;
import lombok.extern.slf4j.Slf4j;



/**
 * @description
 *
 * @author lilinchun
 * @date 2023/09/25
 */
@Slf4j
public class demo8 {

    public static void main(String[] args) {

        ThreadUtil.execAsync(() -> {
            log.info("---------------------错误数据删除---------------------");
            StopWatch watch = new StopWatch();
            watch.start();
            try {
                for (int i = 0; i < 10; i++) {
                    Thread.sleep(1000);
                }

            } catch (Exception e) {
                System.out.println(e.getMessage());
            }
            watch.stop();
            long t1 = watch.getLastTaskTimeMillis();
            log.info("---------------------错误数据删除结束---------------------：" + t1);

        });
    }
}
